package br.lotr.entidades;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;


@Entity
@Table(name="lotr_Culturas")
public class Cultura implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3231421721854155737L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name="id_cultura")
	private long id;
	@Column(name="ds_cultura",nullable=false)
	private String cultura;
	@Column(name="gr_icons")
	@Lob
	private String icon;
	
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getCultura() {
		return cultura;
	}
	public void setCultura(String cultura) {
		this.cultura = cultura;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (id ^ (id >>> 32));
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Cultura other = (Cultura) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
	
}
